<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:html="http://www.w3.org/1999/xhtml"
	exclude-result-prefixes="html">
	
	<!-- Access the content (first div within body as contentPanel) in XHTML format. -->
	
	<xsl:output method="xml" encoding="UTF-8"/>
	
	<xsl:param name="xhtml_view"/>

	<xsl:template match="@* | node()">
		<xsl:copy>
			<xsl:apply-templates select="@* | node()"/>
		</xsl:copy>
	</xsl:template>
	
	<xsl:template match="/">
		<xsl:apply-templates select="document($xhtml_view)/*"/>
	</xsl:template>
	
	<xsl:template match="html:html">
		<xsl:apply-templates select="html:body/html:div[1]"/>
	</xsl:template>
	
</xsl:stylesheet>
